package Inherit;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86184
 * Date: 2023-02-12
 * Time: 15:37
 */
//一般建议最多继承3层
class A{

}
class B extends A{

}
final class C extends B{
    //final表示C不可以被继承
}

/*class  D extends C{  //不可以继承C

}*/

//继承  is a
//组合  a part of / has a  学生和教师是学习的一部分 / 学校包含教师和学生
class Student{

}
class Teacher{

}
class School{
    public Student[] students;
    private Teacher[] teachers;
}
public class Text3 {

}
